package com.daybook.service;

import java.util.List;

import com.daybook.pojo.Category;
import com.daybook.util.PageHelp;
//类别service层接口
public interface CategoryService {
	//分页条件查询
	public PageHelp getLimitPageList(Integer pageNow,String name);
	//查询所有类别
	public List<Category> selectAllCategory();
	//类别更新
	public int updateCategory(Category category);
	//类别添加
	public int addCategory(Category category);
	//类别删除
	public int delCategory(int cid);
	//查看类名是否存在
	public int getOldCategory(String cname);
}
